Using Function 您所在的位置:网站首页 simulink function call 分频 Using Function

Using Function

2024-05-19 01:33| 来源: 网络整理| 查看: 265

Latched Input Data for Function-Call Subsystems

You can latch input data for Inport blocks within Function-Call Subsystem blocks to ensure data integrity. To latch input data, in the Inport block parameters, select Latch input for feedback signals of function-call subsystem outputs.

In the following model, input data for the Inport block in the function-call subsystem ReadDSAndCal1 is latched (indicated by ) and cannot change during the execution of the subsystem. The Data Store Read and Data Store Write blocks are called within each function-call subsystem. The first and second function-calls write data and the last function-call reads data to the Data Store Memory block.

Note

The root-level data Inport block connected to an internal Inport block is also latched if all of the blocks connected to the root-level block are latched. For more information, see Latch input for feedback signals of function-call subsystem outputs.

Note

Data transfer signals are unprotected in the generated code by default. Use custom storage classes to prevent data corruption in these signals due to preemption of the current task in the target environment.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有